package com.htsc.mrp.controller;

import com.htsc.mrp.po.GeneratorInit;
import com.htsc.mrp.service.IGeneratorService;
import com.htsc.mrp.service.Impl.GeneratorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("avatar")
public class GeneratorController {

	@Autowired
	private IGeneratorService generatorService;

	@RequestMapping("generator")
	private String createOrUpdateFile(GeneratorInit generatorInit){
		GeneratorService generatorService = new GeneratorService();
		generatorService.createOrUpdateFile(generatorInit);

		return "ok";
	}
}
